Runs a command from the Windows command prompt on the test computer as playback continues. For example, use this statement to start a server component before actions are performed in a client application.
To pause playback until the command finishes, use the RunCommand statement.
Note: Issues may occur when using this statement in load test scripts.
Syntax
RunBackgroundCommand("ExecutablePath", "WorkingDirectory", "CommandLineArguments")
Arguments
| Argument | Description |
|---|---|
| ExecutablePath | Full path to the executable, batch file, or command file to run in the background. |
| WorkingDirectory | Full path to the executable working directory. |
| CommandLineArguments | Arguments to include in the command line call. |
Example
RunBackgroundCommand("C:\\Program Dir\\SQL Server\\SQLServer.exe", "C:\\Program Dir\\SQL Server\\", "-c -f")